package com.example.administrator.express.model;

import android.os.Parcel;
import android.os.Parcelable;

import com.j256.ormlite.field.DatabaseField;

/**
 * Created by Administrator on 2016/9/19.
 */
public class ViewCount implements Parcelable {

    /**
     * login_id : 100
     * reeceive_count : 2
     * receive_time : 2016-09-12
     * username : han
     */
    @DatabaseField(columnName = "login_id")
    private int login_id;
    @DatabaseField(columnName = "reeceive_count")
    private int reeceive_count;
    @DatabaseField(columnName = "receive_time")
    private String receive_time;
    @DatabaseField(columnName = "username")
    private String username;

    public int getLogin_id() {
        return login_id;
    }

    public void setLogin_id(int login_id) {
        this.login_id = login_id;
    }

    public int getReeceive_count() {
        return reeceive_count;
    }

    public void setReeceive_count(int reeceive_count) {
        this.reeceive_count = reeceive_count;
    }

    public String getReceive_time() {
        return receive_time;
    }

    public void setReceive_time(String receive_time) {
        this.receive_time = receive_time;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.login_id);
        dest.writeInt(this.reeceive_count);
        dest.writeString(this.receive_time);
        dest.writeString(this.username);
    }

    public ViewCount() {
    }

    protected ViewCount(Parcel in) {
        this.login_id = in.readInt();
        this.reeceive_count = in.readInt();
        this.receive_time = in.readString();
        this.username = in.readString();
    }

    public static final Parcelable.Creator<ViewCount> CREATOR = new Parcelable.Creator<ViewCount>() {
        @Override
        public ViewCount createFromParcel(Parcel source) {
            return new ViewCount(source);
        }

        @Override
        public ViewCount[] newArray(int size) {
            return new ViewCount[size];
        }
    };
}
